home *** CD-ROM | disk | FTP | other *** search
- property Znacka
-
- on getPropertyDescriptionList
- set description to [:]
- addProp(description, #Znacka, [#comment: "Znacka:", #format: #integer, #default: 1])
- return description
- end
-
- on getBehaviorDescription
- return "Nájezd a klik"
- end
-
- on beginSprite me
- set the visible of sprite the spriteNum of me to 1
- set the visible of sprite (the spriteNum of me + 1) to 0
- set the visible of sprite (the spriteNum of me + 2) to 0
- end
-
- on endSprite me
- set the visible of sprite the spriteNum of me to 1
- set the visible of sprite (the spriteNum of me + 1) to 1
- set the visible of sprite (the spriteNum of me + 2) to 1
- end
-
- on mouseEnter me
- puppetSound(1, "Najezd")
- set the cursor of sprite the spriteNum of me to [member "ruka_1", member "ruka_2"]
- set the visible of sprite (the spriteNum of me + 1) to 1
- set the visible of sprite (the spriteNum of me + 2) to 1
- end
-
- on mouseLeave me
- set the cursor of sprite the spriteNum of me to -1
- set the visible of sprite (the spriteNum of me + 1) to 0
- set the visible of sprite (the spriteNum of me + 2) to 0
- set the visible of sprite 13 to 0
- end
-
- on mouseDown me
- puppetSound(1, "Klik")
- end
-
- on mouseUp me
- set the visible of sprite (the spriteNum of me + 2) to 0
- set the visible of sprite 13 to 1
- go(Znacka)
- end
-